package iot.core.config;

import iot.core.manager.htcls.HTClsManager;
import iot.core.springboot.properties.FileProperty;
import iot.core.springboot.properties.ProjectInfoProperty;
import iot.core.springboot.properties.SnowflakeProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Date;


@Configuration
public class MyprojectConfig {
    @Bean
    @ConfigurationProperties(prefix = "myproject.snowflake-property")
    public SnowflakeProperty snowflakeProperty() {
        return new SnowflakeProperty();
    }

    @Bean
    @ConfigurationProperties(prefix = "myproject.project-info-property")
    public ProjectInfoProperty projectInfoProperty() {
        return new ProjectInfoProperty();
    }

    @Bean
    @ConfigurationProperties(prefix = "myproject.file")
    public FileProperty fileProperty() {
        return new FileProperty();
    }

}
